GET api/clients/{clientId}/trips/notifications?tripIds[0]={tripIds[0]}&tripIds[1]={tripIds[1]}
Gets notification about booked trips belonging to a client.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| clientId |
ID of the client that the trip is for. |
integer |
Required |
| tripIds |
IDs of the trips. |
Collection of integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Returns information about the booked trip.
TripNotificationTypes| Name | Description | Type | Additional information |
|---|---|---|---|
| TripId |
Gets or sets the code that can be used to identify the notification type. |
integer |
None. |
| NotificationTypes |
Gets or sets the name of the notification type. |
Collection of NotificationType |
None. |
Response Formats
application/json, text/json
Sample:
{
"tripId": 1,
"notificationTypes": [
{
"typeCode": "sample string 1",
"typeName": "sample string 2",
"method": 0,
"enabled": true
},
{
"typeCode": "sample string 1",
"typeName": "sample string 2",
"method": 0,
"enabled": true
}
]
}
application/xml, text/xml
Sample:
<TripNotificationTypes xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TS.DR.Resources">
<NotificationTypes>
<NotificationType>
<Enabled>true</Enabled>
<Method>Voice</Method>
<TypeCode>sample string 1</TypeCode>
<TypeName>sample string 2</TypeName>
</NotificationType>
<NotificationType>
<Enabled>true</Enabled>
<Method>Voice</Method>
<TypeCode>sample string 1</TypeCode>
<TypeName>sample string 2</TypeName>
</NotificationType>
</NotificationTypes>
<TripId>1</TripId>
</TripNotificationTypes>